# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Jakub Skrzypnik <j.skrzypnik@openmailbox.org>
pkgname=kakoune
pkgver=2020.08.04
pkgrel=0
pkgdesc="Code editor heavily inspired by Vim, but with less keystrokes"
url="http://kakoune.org"
arch="all"
license="Unlicense"
makedepends="ncurses-dev asciidoc"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mawww/kakoune/archive/v$pkgver.tar.gz
	alpine-linux.kak
	"

builddir="$srcdir/$pkgname-$pkgver/src"
build() {
	make debug=no
}

check() {
	make check
}

package() {
	make PREFIX="/usr" DESTDIR="$pkgdir/" debug=no install
	install -Dm644 $srcdir/alpine-linux.kak $pkgdir/usr/share/kak/autoload/filetype/
}

sha512sums="47c6c11b24c2dbd129c890014fd6872a9be0191aa94b97eeb184a356227628c6236269c07de3f575acff8721846f5a108ff5e62f3ebab253990852b50ff88827  kakoune-2020.08.04.tar.gz
c5b11dc28adf785b4e83637fe1d5c9db334616d2d3f6c667823745e273f739c57d0d408b9bec8a65210e3c7ccb80a5b488ebbb3c0c5de8bdec13e1b4b4d02b77  alpine-linux.kak"
